﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using EngineOfEvermore.Editor.Common;
using System.Diagnostics;

namespace EngineOfEvermore.Editor.AnimationEditor.View
{
    internal partial class AnimationExplorer : WeifenLuo.WinFormsUI.Docking.DockContent
    {
        IInputListener _inputListener;

        public AnimationExplorer()
        {
            InitializeComponent();
        }

        public AnimationExplorer( IInputListener inputListener ):
            this()
        {
            _inputListener = inputListener;
        }

        void _resourceExplorer_ResourceOpened( object sender, ResourceNameEventArgs e )
        {
            Debug.Assert( _inputListener != null );
            _inputListener.OnOpenAnimationRequest( e.ResourceName );
        }
    }
}
